﻿//
// *************************************************************************************
// WP-Framework
// 
// Developed by
// Lukas Kretschmar (lkretschmar.dev@bluewin.ch)
//
// Switzerland, Copyright (c) 2013 lkretschmar
// This content is released under the MIT License (http://opensource.org/licenses/MIT).
//     
// *************************************************************************************
//
//


using System;
using System.Collections.Generic;
using KretschIT.WP_Fx.EasyMoq.Generator.Items;

namespace KretschIT.WP_Fx.EasyMoq.Generator.Arguments
{
    internal class GenericsHelper
    {
        public static string BuildGenerics(IEnumerable<Type> types, INamingFactory nameFactory)
        {
            IGenericArgumentBuilder builder = new GenericArgumentBuilder(nameFactory);
            foreach (var t in types)
            {
                builder.Add(t);
            }
            return builder.String;
        }   
    }
}
